<template>
  <div>
      <h1>博客管理</h1>
      <el-button @click="drawer = true" type="primary" style="margin-left: 16px;">
  点我打开
</el-button>

    <el-drawer
      :visible.sync="drawer"
      :direction="direction"
      :before-close="handleClose">
          <mavon-editor v-model="ruleForm.content"></mavon-editor>

    </el-drawer>
  </div>
</template>

<script>
export default {
   data() {
      return {
        drawer: false,
        direction: 'rtl',
      };
    },
    methods: {
      handleClose(done) {
        this.$confirm('确认关闭？')
          .then(_ => {
            done();
          })
          .catch(_ => {});
      }
    }
}
</script>

<style>

</style>